package convertUtil

import "strconv"

func String(x interface{}) string {
	s, ok := x.(string)
	if !ok {
		return ""
	}
	return s
}
func Int(x interface{}) int {
	s, ok := x.(string)
	if !ok {
		return 0
	}
	i, _ := strconv.Atoi(s)
	return i
}
func Int32(x interface{}) int32 {
	return x.(int32)
}
